import type { AppInfo, LibInfo } from "akanjs"; interface Dict { Model: string; model: string; appName: string; } export default function getContent(scanInfo: AppInfo | LibInfo | null, dict: Dict) { return { filename: "_index.tsx", content: ` import { ${dict.Model}, fetch, usePage } from "@apps/${dict.appName}/client"; import { Link } from "akanjs/ui"; import type { PageConfig } from "akanjs/client"; interface PageProps { params: { ${dict.model}Id: string }; } export async function generateHead({ params }: PageProps) { const { ${dict.model}Id } = params; const { ${dict.model} } = await fetch.view${dict.Model}(${dict.model}Id); return ( <>